<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ include file="/parameter.jsp" %>
<%@page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<TITLE>论坛</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<Meta http-equiv="Pragma" Content="No-cach">
<link href="style/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
</script>
	</head>

	<body>
	<jsp:include page="inc/header.jsp" />
		<header class="entry-header">
			<h1 class="entry-title">
				<span>论坛首页<div id="searchbar">
				<form name="form3" method="post" action="commonAction.do?method=SearchTopic">
					<input type="text" id="keywords" name="keywords" title="搜索"><button onClick="search();">搜索</button>
				</form>
				</div></span>
			</h1>
		</header>
		
		<div id="maindiv">
			<div id="nav">
			<c:choose>
				<c:when test="${sessionScope.user == null}">
					<div>
						<form name="form1" method="post" action="commonAction.do?method=UserLogin">
						账号：<input type="text" name="username"> 密码：<input type="password" name="password"> 
						<button onClick="loginsubmit();">登陆</button> <a href="commonAction.do?method=toRegister">注册新账号</a>
						</form>
					</div>
				</c:when>
				<c:otherwise>
					<div>
					&nbsp;&nbsp;<c:choose><c:when test="${sessionScope.user.nickname != ''}">${sessionScope.user.nickname}</c:when><c:otherwise>${sessionScope.user.username}</c:otherwise></c:choose>&nbsp;你好！<a
							href="commonAction.do?method=Logout">注销</a>&nbsp;|&nbsp;<a
							href="commonAction.do?method=EditUserInfo&uid=${sessionScope.user.id}">修改个人信息</a>&nbsp;|&nbsp;<a
							href="commonAction.do?method=EditUserPwd&uid=${sessionScope.user.id}">修改密码</a>
					</div>
				</c:otherwise>
			</c:choose>
				<a href="./" title="首页">首页</a>
				<span>&gt;</span>
                板块分类管理
			</div>
			<c:if test="${sessionScope.user.usergrade == '0'}">
			<div class="mngbar"><a href="commonAction.do?method=UserManagerPer">用户管理</a> | <a href="commonAction.do?method=SortPer">板块分类管理</a> | <a href="commonAction.do?method=BoardPer">板块管理</a> | <a href="commonAction.do?method=RecordPer">操作记录</a></div>
			</c:if>
			<div id="board">
				<div class="bm">
					<div class="bm_h">
						<h2>板块分类管理</h2>
					</div>
					<div class="bm_b">
						<table cellspacing="0" cellpadding="0" class="tblList">
							<tr>
								<th>操作人</th>
								<th>操作类型</th>
								<th>操作时间</th>
								<th>操作帖子标题</th>
								<th>帖子发布人</th>
								<th>操 作</th>
							</tr>
		<c:forEach items="${recordlist}" var="record" varStatus="status">
							<tr>
								<td>${record.operator.nickname}</td>
								<td>${record.operatetype}</td>
								<td>${record.opptime}</td>
								<td>${record.relationtitle}</td>
								<td>${record.publisher}</td>
								<td>
									<!--<a href="commonAction.do?method=RecordScan&id=${record.id}">[查看]</a>-->
								</td>
							</tr>
		</c:forEach>

						</table>
						<div class="pg">
						<!--<form method=post action=form>总数<font color=red>5</font>个 | 首 页 上一页  下一页 末 页　页次：<font color=red>1</font>/1页　20条/页　第<select name='pagerNo' onchange="MM_jumpMenu('self',this,0)"><option value='adminAction.do?pagerNo=1&pagerStartNum=0&method=UserManagerPer&pagerUse=true' selected>1</option></select>页</form>-->
						<tools:page pagerName="commonAction.do" pagerSum="${pagerSum}" pagerSize="${pagerSize}"/>
						</div>
					</div>
				</div>
			</div>
		</div>
	<jsp:include page="inc/footer.jsp" />
	</body>
</html>
